//import com.arangodb.tinkerpop.gremlin.utils.ArangoDBConfigurationBuilder;
//import com.baidu.hugegraph.config.HugeConfig;
////import com.baidu.hugegraph.driver.HugeClient;
//import com.baidu.hugegraph.schema.SchemaManager;
////import com.baidu.hugegraph.structure.auth.Login;
//
//import com.baidu.hugegraph.dist.RegisterUtil;
//import com.baidu.hugegraph.dist.HugeGraphServer;
//import com.baidu.hugegraph.HugeFactory;
//import org.apache.commons.configuration.BaseConfiguration;
//import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
//import org.apache.tinkerpop.gremlin.structure.Edge;
//import org.apache.tinkerpop.gremlin.structure.Graph;
//import org.apache.tinkerpop.gremlin.structure.T;
//import org.apache.tinkerpop.gremlin.structure.Vertex;
//import org.apache.tinkerpop.gremlin.structure.util.GraphFactory;
//
///**
// * Created By acproject@qq.com on 2/24/22 9:20 PM
// */
//public class test {
//    public static void test() throws Exception {
////        HugeGraphServer.register();
//        HugeGraphServer graphServer = new HugeGraphServer("/home/qhy/tools/hugegraph-0.12.0/conf/gremlin-server.yaml","/home/qhy/tools/hugegraph-0.12.0/conf/rest-server.properties");
//        graphServer.stop();
//    }
//    public static void main(String[] args) throws Exception {
//        test();
////        RegisterUtil.registerPostgresql();
////        var conf = "/home/qhy/tools/hugegraph-0.12.0/conf/graphs/newGraph.properties";
////        var graph = HugeFactory.open(conf);
////        SchemaManager schema = graph.schema();
////        schema.propertyKey("name").asText().ifNotExist().create();
//////        HugeClient hugeClient = HugeClient.builder("http://localhost:8080","newGraph").build();
//////
//////        Login login = new Login();
//////        login.name("admin");
//////        login.password("123456");
//////        hugeClient.auth().login(login);
//////
//////        hugeClient.close();
////
////        ArangoDBConfigurationBuilder builder  = new ArangoDBConfigurationBuilder();
////        builder.graph("modern")
////                .withVertexCollection("software")
////                .withVertexCollection("person")
////                .withEdgeCollection("knows")
////                .withEdgeCollection("created")
////                .configureEdge("knows", "person", "person")
////                .configureEdge("created", "person", "software");
////
////        BaseConfiguration conf2 = builder.build();
////        Graph graph1 = GraphFactory.open(conf);
////        GraphTraversalSource gts = new GraphTraversalSource(graph1);
////        GraphTraversalSource g = gts.clone();
////        // Add vertices
////        Vertex v1 = g.addV("person").property(T.id, "1").property("name", "marko")
////                .property("age", 29).next();
////        g = gts.clone();
////        Vertex v2 = g.addV("software").property(T.id,
////                        "3").property("name", "lop")
////                .property("lang", "java").next();
////
////// Add edges
////        g = gts.clone();
////        Edge e1 = g.addE("created").from(v1).to(v2).property(T.id, "9").property("weight", 0.4).next();
////
////// Graph traversal
////// Find "marko" in the graph
////        g = gts.clone();
////        Vertex rv = g.V().has("name","marko").next();
////        assert v1 == rv;
////
////// Walk along the "created" edges to "software" vertices
////        g = gts.clone();
////        Edge re = g.V().has("name","marko").outE("created").next();
////        assert re == e1;
////
////        g = gts.clone();
////        rv = g.V().has("name","marko").outE("created").inV().next();
////// If the edge is irrelevant
////// rv = g.V().has("name","marko").out("created").next();
////        assert rv == v2;
////
////
////// Select the "name" property of the "software" vertices
////        g = gts.clone();
////        String name = (String) g.V().has("name","marko").out("created").values("name").next();
////        assert name.equals("lop");
////
////// close the graph and the traversal source
////        gts.close();
////        graph.close();
//
//    }
//}
